﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class ArchitecturalWork
    {
        #region Variable Declaration 
        private IDataRepository _dataObject;
        #endregion //Variable Declaration

        public ArchitecturalWork(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<ArchitecturalWork> GetAllWorksByArchitectId()
        {
            return _dataObject.GetAllWorksByArchitectId(this);
        }
        public void DeleteWorksByArchitectId(int architectId)
        {
            _dataObject.DeleteWorksByArchitectId(architectId);
        }
        public void Create()
        {
            _dataObject.CreateArchitecturalWorks(this);
        }
    }
}
